﻿using UnityEngine;
using UnityEngine.UI;

public class FreeMove : MonoBehaviour
{
    //public float force = 10f;

    void Start()
    {
        //force = Random.Range(100,150);
        //GetComponent<Rigidbody2D>().AddForce(new Vector2(Random.Range(-1,1),Random.Range(-1,1)) * force,ForceMode2D.Impulse);
    }

    private void OnCollisionEnter2D(Collision2D collision)
    {
        GetComponent<RawImage>().texture = Config.Instance.circles[Random.Range(0, Config.Instance.circles.Count)];
    }
}
